﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AnlianCommon.Common.Migrations
{
    public partial class log4 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Descendents",
                columns: table => new
                {
                    RecordId1 = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RecordAuricle1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RecordCorpuscle1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RecordMother1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RecordFather1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RecordBreed1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RecordBorn1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RecordDate1 = table.Column<DateTime>(type: "datetime2", nullable: true),
                    RecordSite1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    RecordWeight1 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    RecordRemark1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    AdmissionDate1 = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Sex = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Gene = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Descendents", x => x.RecordId1);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Descendents");
        }
    }
}
